

public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree=new BinaryTree();
        binaryTree.creatBinaryTree();
        binaryTree.preOrder(binaryTree.getRoot());
        System.out.println();
        binaryTree.inOrder(binaryTree.getRoot());
        System.out.println();
        binaryTree.postOrde(binaryTree.getRoot());
        System.out.println();
        System.out.println(binaryTree.size(binaryTree.getRoot()));
        System.out.println(binaryTree.getLeafNodeCount(binaryTree.getRoot()));
        System.out.println(binaryTree.getKLevelNodeCount(binaryTree.getRoot(),3));
        System.out.println(binaryTree.getHeight(binaryTree.getRoot()));
        System.out.println(binaryTree.find(binaryTree.getRoot(), 'B').getVal());


    }
}
